<template>
  <div> 九日敬礼介绍，意向，详情展示出来，下边有个按纽加入 </div>
  <Button type="primary" @click="tojoin">加入</Button>
</template>

<script>
  import { Button } from 'ant-design-vue';
  import { defineComponent } from 'vue';
  import { useRoute } from 'vue-router';
  import { useGo } from '../hooks/usePages';
  import router from '../router';

  export default defineComponent({
    components: { Button },
    setup(props) {
      const go = useGo();
      const { params } = useRoute();

      function tojoin() {
        const to = { name: 'join', params };
        go(to);
      }
      return {
        tojoin,
      };
    },
  });
</script>

<style></style>
